const userRouter = require('./user')
const returnJson = require('./code')
const path = require("path");


module.exports = app =>{
    app.use('/api', userRouter)
    app.use('/data/*',(req, res)=>res.sendFile(path.join(__dirname, '../assets/data', req.params[0])))
    app.use('/', (req, res)=>{
        res.send('hello api')
    })
}